package com.sz.model;

import org.springframework.data.annotation.Id;
import tk.mybatis.mapper.annotation.KeySql;

public class BankCard {
    public BankCard() {
    }

    public BankCard(Integer pkBankId, Integer userId, String bankAccount, Long balance, String branchState, Long quota, String bankPwd) {
        this.pkBankId = pkBankId;
        this.userId = userId;
        this.bankAccount = bankAccount;
        this.balance = balance;
        this.branchState = branchState;
        this.quota = quota;
        this.bankPwd = bankPwd;
    }

    public BankCard(Integer userId, String bankAccount, Long balance, String branchState, Long quota, String bankPwd) {
        this.userId = userId;
        this.bankAccount = bankAccount;
        this.balance = balance;
        this.branchState = branchState;
        this.quota = quota;
        this.bankPwd = bankPwd;
    }

    @Override
    public String toString() {
        return "BankCard{" +
                "pkBankId=" + pkBankId +
                ", userId=" + userId +
                ", bankAccount='" + bankAccount + '\'' +
                ", balance=" + balance +
                ", branchState='" + branchState + '\'' +
                ", quota=" + quota +
                ", bankPwd='" + bankPwd + '\'' +
                '}';
    }

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bank_card.pk_bank_id
     *
     * @mbggenerated
     */
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer pkBankId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bank_card.user_id
     *
     * @mbggenerated
     */
    private Integer userId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bank_card.bank_account
     *
     * @mbggenerated
     */
    private String bankAccount;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bank_card.balance
     *
     * @mbggenerated
     */
    private Long balance;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bank_card.branch_state
     *
     * @mbggenerated
     */
    private String branchState;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bank_card.quota
     *
     * @mbggenerated
     */
    private Long quota;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bank_card.bank_pwd
     *
     * @mbggenerated
     */
    private String bankPwd;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bank_card.pk_bank_id
     *
     * @return the value of bank_card.pk_bank_id
     *
     * @mbggenerated
     */
    public Integer getPkBankId() {
        return pkBankId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bank_card.pk_bank_id
     *
     * @param pkBankId the value for bank_card.pk_bank_id
     *
     * @mbggenerated
     */
    public void setPkBankId(Integer pkBankId) {
        this.pkBankId = pkBankId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bank_card.user_id
     *
     * @return the value of bank_card.user_id
     *
     * @mbggenerated
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bank_card.user_id
     *
     * @param userId the value for bank_card.user_id
     *
     * @mbggenerated
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bank_card.bank_account
     *
     * @return the value of bank_card.bank_account
     *
     * @mbggenerated
     */
    public String getBankAccount() {
        return bankAccount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bank_card.bank_account
     *
     * @param bankAccount the value for bank_card.bank_account
     *
     * @mbggenerated
     */
    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount == null ? null : bankAccount.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bank_card.balance
     *
     * @return the value of bank_card.balance
     *
     * @mbggenerated
     */
    public Long getBalance() {
        return balance;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bank_card.balance
     *
     * @param balance the value for bank_card.balance
     *
     * @mbggenerated
     */
    public void setBalance(Long balance) {
        this.balance = balance;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bank_card.branch_state
     *
     * @return the value of bank_card.branch_state
     *
     * @mbggenerated
     */
    public String getBranchState() {
        return branchState;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bank_card.branch_state
     *
     * @param branchState the value for bank_card.branch_state
     *
     * @mbggenerated
     */
    public void setBranchState(String branchState) {
        this.branchState = branchState == null ? null : branchState.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bank_card.quota
     *
     * @return the value of bank_card.quota
     *
     * @mbggenerated
     */
    public Long getQuota() {
        return quota;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bank_card.quota
     *
     * @param quota the value for bank_card.quota
     *
     * @mbggenerated
     */
    public void setQuota(Long quota) {
        this.quota = quota;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bank_card.bank_pwd
     *
     * @return the value of bank_card.bank_pwd
     *
     * @mbggenerated
     */
    public String getBankPwd() {
        return bankPwd;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bank_card.bank_pwd
     *
     * @param bankPwd the value for bank_card.bank_pwd
     *
     * @mbggenerated
     */
    public void setBankPwd(String bankPwd) {
        this.bankPwd = bankPwd == null ? null : bankPwd.trim();
    }
}